home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / ShutDown.h < prev    next >
Text File  |  1991-04-17  |  1KB  |  49 lines

  1. /************************************************************
  2.  
  3. Created: Sunday, January 6, 1991 at 10:02 PM
  4.     ShutDown.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1987-1989
  9.         All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __SHUTDOWN__
  15. #define __SHUTDOWN__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21.  
  22. enum {
  23.  
  24.     sdOnPowerOff = 1,       /*call procedure before power off.*/
  25.     sdOnRestart = 2,        /*call procedure before restart.*/
  26.     sdOnUnmount = 4,        /*call procedure before unmounting.*/
  27.     sdOnDrivers = 8,        /*call procedure before closing drivers.*/
  28.     sdRestartOrPower = 3    /*call before either power off or restart.*/
  29. };
  30.  
  31. typedef pascal void (*ShutDwnProcPtr)(void);
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. pascal void ShutDwnPower(void)
  37.     = {0x3F3C,0x0001,0xA895}; 
  38. pascal void ShutDwnStart(void)
  39.     = {0x3F3C,0x0002,0xA895}; 
  40. pascal void ShutDwnInstall(ShutDwnProcPtr shutDownProc,short flags)
  41.     = {0x3F3C,0x0003,0xA895}; 
  42. pascal void ShutDwnRemove(ShutDwnProcPtr shutDownProc)
  43.     = {0x3F3C,0x0004,0xA895}; 
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif
  49.